package org.niugang.bean;

import org.niugang.constant.OAauthServiceConstant;
import org.niugang.entity.UserEntity;
/**
 * 用户查询对象
 * Copyright: Copyright (c) 2018 863263957@qq.com
 * 
 * @ClassName: UserQueryBean.java
 * @version: v1.0.0
 * @author: niugang
 * @date: 2018年9月19日 下午5:01:53
 */
public class UserQueryBean  extends UserEntity{
	private Integer pageNo = OAauthServiceConstant.DEFAULT_PAGE_NUMBER;
	private Integer pageSize = OAauthServiceConstant.DEFAULT_PAGE_SIZE;
	private Integer startRecord;
	
	/**
	 * 定义查询字段
	 */
	private String[] queryField;
	
	
	/**
	 * 以下为扩展查询字段
	 */
	private String deptName;
	private String roleName;
	
	public Integer getPageNo() {
		return pageNo;
	}

	public void setPageNo(Integer pageNo) {
		this.pageNo = pageNo;
	}

	public Integer getPageSize() {
		return pageSize;
	}

	public void setPageSize(Integer pageSize) {
		this.pageSize = pageSize;
	}

	public Integer getStartRecord() {
		return (pageNo - 1) * pageSize;
	}

	public void setStartRecord(Integer startRecord) {
		this.startRecord = startRecord;
	}
	public String[] getQueryField() {
		return queryField;
	}

	public void setQueryField(String ...queryField) {
		this.queryField = queryField;
	}

	public String getDeptName() {
		return deptName;
	}

	public void setDeptName(String deptName) {
		this.deptName = deptName;
	}

	public String getRoleName() {
		return roleName;
	}

	public void setRoleName(String roleName) {
		this.roleName = roleName;
	}
	

}
